<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/swiper.min.css">
    <style>
        .nav {
            width: 750px;
            margin: 0 auto;
        }

        .study {
            width: 750px;
            margin: 0 auto;
            padding: 20px;
        }

        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;

            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            flex-direction: column;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
            transition: 300ms;
            transform: scale(0.8);
            opacity: .5;
        }

        .swiper-slide-active,
        .swiper-slide-duplicate-active {
            transform: scale(1);
            z-index: 2;
            opacity: 1;
        }

        .swiper-slide a {
            width: 338px;
            height: 376px;
        }

        .swiper-slide a img {
            width: 100%;
            height: 100%;
        }

        .swiper-slide p {
            text-align: left;
            font-size: 25px;
            margin-top: 24px;
            color: #333;
            width: 100%;
        }

        .getjob {
            width: 540px;
        }

        .nav {
            position: relative;
        }

        .study .swiper-container {
            width: 100%;
            height: 100%;
        }

        .study .swiper-slide img {
            width: 100%;
            height: 100%;
        }

        .study .swiper-slide {
            text-align: left;
            font-size: 18px;
            background: #fff;
            width: 230px;
            height: 290px;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            opacity: 1;
            border-radius: 4px;
            overflow: hidden;

        }

        h5 {
            font-size: 26px;
            font-weight: 400px;
            padding: 10px;
            margin: 0;
        }
    </style>
</head>

<body>
    <div class="nav">
        <div class="swiper-container getjob">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <a href="#"><img src="images/pic.png" alt=""></a>
                    <p>老师教你应对面试技巧</p>
                </div>
                <div class="swiper-slide">
                    <a href="#"><img src="images/2.jpg" alt=""></a>
                    <p>老师教你应对面试技巧</p>
                </div>
                <div class="swiper-slide">
                    <a href="#"><img src="images/3.jpg" alt=""></a>
                    <p>老师教你应对面试技巧</p>
                </div>
            </div>
        </div>
        <!-- Add Arrows -->
        <div class="swiper-button-next"></div>
        <div class="swiper-button-prev"></div>
    </div>
    <div class="study">
        <div class="swiper-container he">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <img src="images/pic1.png" alt="">
                    <h5>说地道英语，告别中式英语</h5>
                    <p>156人学习</p>
                </div>
                <div class="swiper-slide">
                    <img src="images/pic1.png" alt="">
                    <h5>说地道英语，告别中式英语</h5>
                    <p>156人学习</p>
                </div>
                <div class="swiper-slide">
                    <img src="images/pic1.png" alt="">
                    <h5>说地道英语，告别中式英语</h5>
                    <p>156人学习</p>
                </div>
                <div class="swiper-slide">
                    <img src="images/pic2.png" alt="">
                    <h5>说地道英语，告别中式英语</h5>
                    <p>156人学习</p>
                </div>
                <div class="swiper-slide">
                    <img src="images/pic.png" alt="">
                    <h5>说地道英语，告别中式英语</h5>
                    <p>156人学习</p>
                </div>

            </div>
        </div>

    </div>
    <script src="js/swiper.min.js"></script>
    <script>
        (
            function () {
                var swiper = new Swiper('.getjob', {
                    slidesPerView: 2,
                    spaceBetween: 30,
                    centeredSlides: true,
                    loop: true,
                    // 添加箭头
                    navigation: {
                        nextEl: '.swiper-button-next',
                        prevEl: '.swiper-button-prev',
                    },
                })
            })();

        // 第二个函数的轮播图
        (function () {
            var swiper = new Swiper('.he', {
                slidesPerView: 2.4,
                spaceBetween: 30,
                pagination: {
                    el: '.swiper-pagination',
                    clickable: true,
                },
            });
        })()
    </script>
</body>

</html>